﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace rabbit
{
    class Program
    {
        static void Main(string[] args)
        {
        
            for (int x = 1; x < 40; x++) {
                for (int y = 1; y < 40; y++) {
                    int a = x * 2 + y * 4;
                    int b = x + y;
                    if (a==100 && b==40) {

                        Console.WriteLine("鸡有{0}只兔有{1}只", x, y);
                       
                    }

                }
                    

            }
            
        }
    }
}
